package com.bdqn.design;

import com.bdqn.design.proxy.IntermediaryImpl;
import com.bdqn.design.proxy.RealBuyer;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

/**
 * Test03AgencyBuyer
 *
 * @author LILIBO
 * @since 2024/7/4
 */
public class Test03AgencyBuyerImpl {

    /**
     * 日志
     */
    private static final Logger log = LogManager.getLogger(IntermediaryImpl.class);

    public static void main(String[] args) {

        // 真实想买房的人
        RealBuyer realBuyer = new RealBuyer();

        // 代理
        IntermediaryImpl intermediaryImpl = new IntermediaryImpl(realBuyer);

        // 代理看房
        String idea = intermediaryImpl.havealook();

        log.info("看房结果：" + idea);

    }

}
